package com.ims.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ims.pojo.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据用户名查询出用户实体对象
     * @param username
     * @return
     */
    User selectByUsername(String username);

    /**
     * 禁用该用户
     * @param userId
     */
    void disableUser(Integer userId);

}
